package org.dizem.intellipainter.util;

import org.dizem.intellipainter.AppConstants;

import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.*;

/**
 * User: dizem@126.com
 * Time: 12-2-19 上午10:31
 */
public class AppletUtil {
	public static Image getImage(Applet applet, String filename) {
		return applet.getImage(applet.getDocumentBase(), AppConstants.RESOURCE_DIR + filename);
	}

	public static AudioClip getMusic(Applet applet, String filename) {
		return applet.getAudioClip(applet.getDocumentBase(), AppConstants.RESOURCE_DIR + filename);
	}
}
